package com.itda.config;

import org.dom4j.io.SAXReader;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: itda
 * @Date: 2024/5/3 15:28
 * @Description: CommonConfig
 */
@Configuration //配置类
public class CommonConfig {

    //声明第三方的Bean对象
    @Bean//将当前方法的返回值对象交给IOC容器管理,成为IOC容器Bean
         //通过@Bean注解的name/value属性指定bean名称,如果未指定,默认是方法名
    public SAXReader saxReader(){
        return new SAXReader();
    }
}
